import { http } from "../../utils/http";
// 财务结算功能--获取最大领用单号
export const getMaxReconciliationBillId = () => {
  return http.request("get", "/box/getMaxReconciliationBillId");
};


// 财务结算功能--新增领用申请单
export const insertReconciliationBill = (data) => {
  return http.request("put", "/box/insertReconciliationBill" ,{data}   );
};

// 财务结算功能--按供应商获取已完成入库的采购订单
export const getAlreadyPurchaseOrderList = (data) => {
  return http.request("post", "/box/getAlreadyPurchaseOrderList" ,{data}   );
};

// 财务结算明细查询--获取所有领用信息
export const getReconciliationBill = () => {
  return http.request("get", "/box/getReconciliationBill");
};
// 财务结算明细查询--更新领用信息
export const updateReconciliationBill = (data) => {
  return http.request("post", "/box/updateReconciliationBill", {data});
};
// 财务结算明细查询--删除领用信息
export const DeleteReconciliationBill = (data) => {
  return http.request("delete", "/box/DeleteReconciliationBill", {data});
};
// 财务结算明细查询--查询订单信息
export const searchReconciliationBill = (data) => {
  return http.request("get", "/box/searchReconciliationBill", {data});
};
